package Strategy;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 14-10-13
 * Time: 00:23
 * To change this template use File | Settings | File Templates.
 */
public class AnimalPlay {

    public static void main(String[] args){
        Animal sparky = new Dog();
        Animal tweety = new Bird();
        Animal tweetyeagle = new Eagle();

        System.out.println("Dog: " + sparky.tryToFly());
        System.out.println("Bird: " + tweety.tryToFly());

        sparky.setFlyingAbility(new ItFlys());
        System.out.println("Dog: " + sparky.tryToFly());

        System.out.println("Eagle: " + tweetyeagle.tryToFly());

        // Test to check if it commits properly

    }
}
